package org.example.dto;

import lombok.Data;

@Data
public class Potato {

    private String name;
    private String detail;

    private PotatoDetail potatoDetail;

    public Potato() {
    }

    public Potato(String name, String color, String detail) {
        this.potatoDetail=new PotatoDetail();
        this.name = name;
        this.potatoDetail.setColor(color);
        this.detail = detail;
    }
}
